<table class="listing">
<%if (@outrecords.length > 0)%>
  <tr>  
  <thead>
    <th >立通编号</th>
    <th >书名</th>
    <th >出版社</th>
    <th >借书人</th>
    <th >归还日期</th>
    <th >批准归还</th>
  </thead>
  </tr>
<% @outrecords.each_with_index do |outrecord,i| %>
  <tr class="line<%=i%2%>">
    <td><%=h outrecord.book.lt_code %></td>
    <td><%=h outrecord.book.book_name%></td>
    <td><%=h outrecord.book.publish.publish_name %></td>
    <td><%=h outrecord.reader.reader_name %></td>    
    <td><%=h outrecord.return_date %></td> 
    <td><%=link_to '批准',{:action => 'inSubmit',:id=>outrecord.book},:confirm=>'确认归还?'%></td> 
  </tr>
<% end %>
<%else%>
  <tr><td>没有待批记录</td></tr>
<%end%>
</table>


